package com.tea.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.tea.constant.MessageConstant;
import com.tea.constant.StatusConstant;
import com.tea.context.BaseContext;
import com.tea.dto.CategoryDTO;
import com.tea.dto.CategoryPageQueryDTO;
import com.tea.entity.Category;
import com.tea.exception.DeletionNotAllowedException;
import com.tea.mapper.CategoryMapper;
import com.tea.result.PageResult;
import com.tea.service.CategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分类业务层
 */
@Service
@Slf4j
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> list(Category category) {
        return categoryMapper.list(category);
    }
}
